{"ast":null,"code":"import _defineProperty from \"/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/@babel/runtime/helpers/esm/defineProperty.js\";\nimport { genComponentStyleHook, mergeToken } from '../../theme/internal';\nimport genGroupStyle from './group';\nimport { genFocusStyle } from '../../style';\nimport { genCompactItemStyle } from '../../style/compact-item';\nimport { genCompactItemVerticalStyle } from '../../style/compact-item-vertical';\n// ============================== Shared ==============================\nvar genSharedButtonStyle = function genSharedButtonStyle(token) {\n  var _componentCls;\n  var componentCls = token.componentCls,\n    iconCls = token.iconCls;\n  return _defineProperty({}, componentCls, (_componentCls = {\n    outline: 'none',\n    position: 'relative',\n    display: 'inline-block',\n    fontWeight: 400,\n    whiteSpace: 'nowrap',\n    textAlign: 'center',\n    backgroundImage: 'none',\n    backgroundColor: 'transparent',\n    border: \"\".concat(token.lineWidth, \"px \").concat(token.lineType, \" transparent\"),\n    cursor: 'pointer',\n    transition: \"all \".concat(token.motionDurationMid, \" \").concat(token.motionEaseInOut),\n    userSelect: 'none',\n    touchAction: 'manipulation',\n    lineHeight: token.lineHeight,\n    color: token.colorText,\n    '> span': {\n      display: 'inline-block'\n    }\n  }, _defineProperty(_componentCls, \"> \".concat(iconCls, \" + span, > span + \").concat(iconCls), {\n    marginInlineStart: token.marginXS\n  }), _defineProperty(_componentCls, '&:not(:disabled)', Object.assign({}, genFocusStyle(token))), _defineProperty(_componentCls, '&-icon-only&-compact-item', {\n    flex: 'none'\n  }), _defineProperty(_componentCls, \"&-compact-item\".concat(componentCls, \"-primary\"), {\n    '&:not([disabled]) + &:not([disabled])': {\n      position: 'relative',\n      '&:before': {\n        position: 'absolute',\n        top: -token.lineWidth,\n        insetInlineStart: -token.lineWidth,\n        display: 'inline-block',\n        width: token.lineWidth,\n        height: \"calc(100% + \".concat(token.lineWidth * 2, \"px)\"),\n        backgroundColor: token.colorPrimaryHover,\n        content: '\"\"'\n      }\n    }\n  }), _defineProperty(_componentCls, '&-compact-vertical-item', _defineProperty({}, \"&\".concat(componentCls, \"-primary\"), {\n    '&:not([disabled]) + &:not([disabled])': {\n      position: 'relative',\n      '&:before': {\n        position: 'absolute',\n        top: -token.lineWidth,\n        insetInlineStart: -token.lineWidth,\n        display: 'inline-block',\n        width: \"calc(100% + \".concat(token.lineWidth * 2, \"px)\"),\n        height: token.lineWidth,\n        backgroundColor: token.colorPrimaryHover,\n        content: '\"\"'\n      }\n    }\n  })), _componentCls));\n};\nvar genHoverActiveButtonStyle = function genHoverActiveButtonStyle(hoverStyle, activeStyle) {\n  return {\n    '&:not(:disabled)': {\n      '&:hover': hoverStyle,\n      '&:active': activeStyle\n    }\n  };\n};\n// ============================== Shape ===============================\nvar genCircleButtonStyle = function genCircleButtonStyle(token) {\n  return {\n    minWidth: token.controlHeight,\n    paddingInlineStart: 0,\n    paddingInlineEnd: 0,\n    borderRadius: '50%'\n  };\n};\nvar genRoundButtonStyle = function genRoundButtonStyle(token) {\n  return {\n    borderRadius: token.controlHeight,\n    paddingInlineStart: token.controlHeight / 2,\n    paddingInlineEnd: token.controlHeight / 2,\n    width: 'auto'\n  };\n};\n// =============================== Type ===============================\nvar genDisabledStyle = function genDisabledStyle(token) {\n  return {\n    cursor: 'not-allowed',\n    borderColor: token.colorBorder,\n    color: token.colorTextDisabled,\n    backgroundColor: token.colorBgContainerDisabled,\n    boxShadow: 'none'\n  };\n};\nvar genGhostButtonStyle = function genGhostButtonStyle(btnCls, textColor, borderColor, textColorDisabled, borderColorDisabled, hoverStyle, activeStyle) {\n  return _defineProperty({}, \"&\".concat(btnCls, \"-background-ghost\"), Object.assign(Object.assign({\n    color: textColor || undefined,\n    backgroundColor: 'transparent',\n    borderColor: borderColor || undefined,\n    boxShadow: 'none'\n  }, genHoverActiveButtonStyle(Object.assign({\n    backgroundColor: 'transparent'\n  }, hoverStyle), Object.assign({\n    backgroundColor: 'transparent'\n  }, activeStyle))), {\n    '&:disabled': {\n      cursor: 'not-allowed',\n      color: textColorDisabled || undefined,\n      borderColor: borderColorDisabled || undefined\n    }\n  }));\n};\nvar genSolidDisabledButtonStyle = function genSolidDisabledButtonStyle(token) {\n  return {\n    '&:disabled': Object.assign({}, genDisabledStyle(token))\n  };\n};\nvar genSolidButtonStyle = function genSolidButtonStyle(token) {\n  return Object.assign({}, genSolidDisabledButtonStyle(token));\n};\nvar genPureDisabledButtonStyle = function genPureDisabledButtonStyle(token) {\n  return {\n    '&:disabled': {\n      cursor: 'not-allowed',\n      color: token.colorTextDisabled\n    }\n  };\n};\n// Type: Default\nvar genDefaultButtonStyle = function genDefaultButtonStyle(token) {\n  return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, genSolidButtonStyle(token)), {\n    backgroundColor: token.colorBgContainer,\n    borderColor: token.colorBorder,\n    boxShadow: \"0 \".concat(token.controlOutlineWidth, \"px 0 \").concat(token.controlTmpOutline)\n  }), genHoverActiveButtonStyle({\n    color: token.colorPrimaryHover,\n    borderColor: token.colorPrimaryHover\n  }, {\n    color: token.colorPrimaryActive,\n    borderColor: token.colorPrimaryActive\n  })), genGhostButtonStyle(token.componentCls, token.colorBgContainer, token.colorBgContainer, token.colorTextDisabled, token.colorBorder)), _defineProperty({}, \"&\".concat(token.componentCls, \"-dangerous\"), Object.assign(Object.assign(Object.assign({\n    color: token.colorError,\n    borderColor: token.colorError\n  }, genHoverActiveButtonStyle({\n    color: token.colorErrorHover,\n    borderColor: token.colorErrorBorderHover\n  }, {\n    color: token.colorErrorActive,\n    borderColor: token.colorErrorActive\n  })), genGhostButtonStyle(token.componentCls, token.colorError, token.colorError, token.colorTextDisabled, token.colorBorder)), genSolidDisabledButtonStyle(token))));\n};\n// Type: Primary\nvar genPrimaryButtonStyle = function genPrimaryButtonStyle(token) {\n  return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, genSolidButtonStyle(token)), {\n    color: token.colorTextLightSolid,\n    backgroundColor: token.colorPrimary,\n    boxShadow: \"0 \".concat(token.controlOutlineWidth, \"px 0 \").concat(token.controlOutline)\n  }), genHoverActiveButtonStyle({\n    color: token.colorTextLightSolid,\n    backgroundColor: token.colorPrimaryHover\n  }, {\n    color: token.colorTextLightSolid,\n    backgroundColor: token.colorPrimaryActive\n  })), genGhostButtonStyle(token.componentCls, token.colorPrimary, token.colorPrimary, token.colorTextDisabled, token.colorBorder, {\n    color: token.colorPrimaryHover,\n    borderColor: token.colorPrimaryHover\n  }, {\n    color: token.colorPrimaryActive,\n    borderColor: token.colorPrimaryActive\n  })), _defineProperty({}, \"&\".concat(token.componentCls, \"-dangerous\"), Object.assign(Object.assign(Object.assign({\n    backgroundColor: token.colorError,\n    boxShadow: \"0 \".concat(token.controlOutlineWidth, \"px 0 \").concat(token.colorErrorOutline)\n  }, genHoverActiveButtonStyle({\n    backgroundColor: token.colorErrorHover\n  }, {\n    backgroundColor: token.colorErrorActive\n  })), genGhostButtonStyle(token.componentCls, token.colorError, token.colorError, token.colorTextDisabled, token.colorBorder, {\n    color: token.colorErrorHover,\n    borderColor: token.colorErrorHover\n  }, {\n    color: token.colorErrorActive,\n    borderColor: token.colorErrorActive\n  })), genSolidDisabledButtonStyle(token))));\n};\n// Type: Dashed\nvar genDashedButtonStyle = function genDashedButtonStyle(token) {\n  return Object.assign(Object.assign({}, genDefaultButtonStyle(token)), {\n    borderStyle: 'dashed'\n  });\n};\n// Type: Link\nvar genLinkButtonStyle = function genLinkButtonStyle(token) {\n  return Object.assign(Object.assign(Object.assign({\n    color: token.colorLink\n  }, genHoverActiveButtonStyle({\n    color: token.colorLinkHover\n  }, {\n    color: token.colorLinkActive\n  })), genPureDisabledButtonStyle(token)), _defineProperty({}, \"&\".concat(token.componentCls, \"-dangerous\"), Object.assign(Object.assign({\n    color: token.colorError\n  }, genHoverActiveButtonStyle({\n    color: token.colorErrorHover\n  }, {\n    color: token.colorErrorActive\n  })), genPureDisabledButtonStyle(token))));\n};\n// Type: Text\nvar genTextButtonStyle = function genTextButtonStyle(token) {\n  return Object.assign(Object.assign(Object.assign({}, genHoverActiveButtonStyle({\n    color: token.colorText,\n    backgroundColor: token.colorBgTextHover\n  }, {\n    color: token.colorText,\n    backgroundColor: token.colorBgTextActive\n  })), genPureDisabledButtonStyle(token)), _defineProperty({}, \"&\".concat(token.componentCls, \"-dangerous\"), Object.assign(Object.assign({\n    color: token.colorError\n  }, genPureDisabledButtonStyle(token)), genHoverActiveButtonStyle({\n    color: token.colorErrorHover,\n    backgroundColor: token.colorErrorBg\n  }, {\n    color: token.colorErrorHover,\n    backgroundColor: token.colorErrorBg\n  }))));\n};\n// Href and Disabled\nvar genDisabledButtonStyle = function genDisabledButtonStyle(token) {\n  return Object.assign(Object.assign({}, genDisabledStyle(token)), _defineProperty({}, \"&\".concat(token.componentCls, \":hover\"), Object.assign({}, genDisabledStyle(token))));\n};\nvar genTypeButtonStyle = function genTypeButtonStyle(token) {\n  var _ref3;\n  var componentCls = token.componentCls;\n  return _ref3 = {}, _defineProperty(_ref3, \"\".concat(componentCls, \"-default\"), genDefaultButtonStyle(token)), _defineProperty(_ref3, \"\".concat(componentCls, \"-primary\"), genPrimaryButtonStyle(token)), _defineProperty(_ref3, \"\".concat(componentCls, \"-dashed\"), genDashedButtonStyle(token)), _defineProperty(_ref3, \"\".concat(componentCls, \"-link\"), genLinkButtonStyle(token)), _defineProperty(_ref3, \"\".concat(componentCls, \"-text\"), genTextButtonStyle(token)), _defineProperty(_ref3, \"\".concat(componentCls, \"-disabled\"), genDisabledButtonStyle(token)), _ref3;\n};\n// =============================== Size ===============================\nvar genSizeButtonStyle = function genSizeButtonStyle(token) {\n  var _$concat$concat;\n  var sizePrefixCls = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';\n  var componentCls = token.componentCls,\n    iconCls = token.iconCls;\n  var paddingVertical = Math.max(0, (token.controlHeight - token.fontSize * token.lineHeight) / 2 - token.lineWidth);\n  var paddingHorizontal = token.buttonPaddingHorizontal - token.lineWidth;\n  var iconOnlyCls = \"\".concat(componentCls, \"-icon-only\");\n  return [// Size\n  _defineProperty({}, \"\".concat(componentCls).concat(sizePrefixCls), (_$concat$concat = {\n    fontSize: token.fontSize,\n    height: token.controlHeight,\n    padding: \"\".concat(paddingVertical, \"px \").concat(paddingHorizontal, \"px\"),\n    borderRadius: token.borderRadius\n  }, _defineProperty(_$concat$concat, \"&\".concat(iconOnlyCls), {\n    width: token.controlHeight,\n    paddingInlineStart: 0,\n    paddingInlineEnd: 0,\n    '> span': {\n      transform: 'scale(1.143)' // 14px -> 16px\n    }\n  }), _defineProperty(_$concat$concat, \"&\".concat(componentCls, \"-loading\"), {\n    opacity: token.opacityLoading,\n    cursor: 'default'\n  }), _defineProperty(_$concat$concat, \"\".concat(componentCls, \"-loading-icon\"), {\n    transition: \"width \".concat(token.motionDurationSlow, \" \").concat(token.motionEaseInOut, \", opacity \").concat(token.motionDurationSlow, \" \").concat(token.motionEaseInOut)\n  }), _defineProperty(_$concat$concat, \"&:not(\".concat(iconOnlyCls, \") \").concat(componentCls, \"-loading-icon > \").concat(iconCls), {\n    marginInlineEnd: token.marginXS\n  }), _$concat$concat)), // Shape - patch prefixCls again to override solid border radius style\n  _defineProperty({}, \"\".concat(componentCls).concat(componentCls, \"-circle\").concat(sizePrefixCls), genCircleButtonStyle(token)), _defineProperty({}, \"\".concat(componentCls).concat(componentCls, \"-round\").concat(sizePrefixCls), genRoundButtonStyle(token))];\n};\nvar genSizeBaseButtonStyle = function genSizeBaseButtonStyle(token) {\n  return genSizeButtonStyle(token);\n};\nvar genSizeSmallButtonStyle = function genSizeSmallButtonStyle(token) {\n  var smallToken = mergeToken(token, {\n    controlHeight: token.controlHeightSM,\n    padding: token.paddingXS,\n    buttonPaddingHorizontal: 8,\n    borderRadius: token.borderRadiusSM\n  });\n  return genSizeButtonStyle(smallToken, \"\".concat(token.componentCls, \"-sm\"));\n};\nvar genSizeLargeButtonStyle = function genSizeLargeButtonStyle(token) {\n  var largeToken = mergeToken(token, {\n    controlHeight: token.controlHeightLG,\n    fontSize: token.fontSizeLG,\n    borderRadius: token.borderRadiusLG\n  });\n  return genSizeButtonStyle(largeToken, \"\".concat(token.componentCls, \"-lg\"));\n};\nvar genBlockButtonStyle = function genBlockButtonStyle(token) {\n  var componentCls = token.componentCls;\n  return _defineProperty({}, componentCls, _defineProperty({}, \"&\".concat(componentCls, \"-block\"), {\n    width: '100%'\n  }));\n};\n// ============================== Export ==============================\nexport default genComponentStyleHook('Button', function (token) {\n  var controlTmpOutline = token.controlTmpOutline,\n    paddingContentHorizontal = token.paddingContentHorizontal;\n  var buttonToken = mergeToken(token, {\n    colorOutlineDefault: controlTmpOutline,\n    buttonPaddingHorizontal: paddingContentHorizontal\n  });\n  return [\n  // Shared\n  genSharedButtonStyle(buttonToken),\n  // Size\n  genSizeSmallButtonStyle(buttonToken), genSizeBaseButtonStyle(buttonToken), genSizeLargeButtonStyle(buttonToken),\n  // Block\n  genBlockButtonStyle(buttonToken),\n  // Group (type, ghost, danger, disabled, loading)\n  genTypeButtonStyle(buttonToken),\n  // Button Group\n  genGroupStyle(buttonToken),\n  // Space Compact\n  genCompactItemStyle(token, {\n    focus: false\n  }), genCompactItemVerticalStyle(token)];\n});","map":{"version":3,"names":["genComponentStyleHook","mergeToken","genGroupStyle","genFocusStyle","genCompactItemStyle","genCompactItemVerticalStyle","genSharedButtonStyle","token","componentCls","iconCls","outline","position","display","fontWeight","whiteSpace","textAlign","backgroundImage","backgroundColor","border","lineWidth","lineType","cursor","transition","motionDurationMid","motionEaseInOut","userSelect","touchAction","lineHeight","color","colorText","marginInlineStart","marginXS","Object","assign","flex","top","insetInlineStart","width","height","colorPrimaryHover","content","genHoverActiveButtonStyle","hoverStyle","activeStyle","genCircleButtonStyle","minWidth","controlHeight","paddingInlineStart","paddingInlineEnd","borderRadius","genRoundButtonStyle","genDisabledStyle","borderColor","colorBorder","colorTextDisabled","colorBgContainerDisabled","boxShadow","genGhostButtonStyle","btnCls","textColor","textColorDisabled","borderColorDisabled","undefined","genSolidDisabledButtonStyle","genSolidButtonStyle","genPureDisabledButtonStyle","genDefaultButtonStyle","colorBgContainer","controlOutlineWidth","controlTmpOutline","colorPrimaryActive","colorError","colorErrorHover","colorErrorBorderHover","colorErrorActive","genPrimaryButtonStyle","colorTextLightSolid","colorPrimary","controlOutline","colorErrorOutline","genDashedButtonStyle","borderStyle","genLinkButtonStyle","colorLink","colorLinkHover","colorLinkActive","genTextButtonStyle","colorBgTextHover","colorBgTextActive","colorErrorBg","genDisabledButtonStyle","genTypeButtonStyle","genSizeButtonStyle","sizePrefixCls","arguments","length","paddingVertical","Math","max","fontSize","paddingHorizontal","buttonPaddingHorizontal","iconOnlyCls","padding","transform","opacity","opacityLoading","motionDurationSlow","marginInlineEnd","genSizeBaseButtonStyle","genSizeSmallButtonStyle","smallToken","controlHeightSM","paddingXS","borderRadiusSM","genSizeLargeButtonStyle","largeToken","controlHeightLG","fontSizeLG","borderRadiusLG","genBlockButtonStyle","paddingContentHorizontal","buttonToken","colorOutlineDefault","focus"],"sources":["/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/antd/es/button/style/index.js"],"sourcesContent":["import { genComponentStyleHook, mergeToken } from '../../theme/internal';\nimport genGroupStyle from './group';\nimport { genFocusStyle } from '../../style';\nimport { genCompactItemStyle } from '../../style/compact-item';\nimport { genCompactItemVerticalStyle } from '../../style/compact-item-vertical';\n// ============================== Shared ==============================\nconst genSharedButtonStyle = token => {\n  const {\n    componentCls,\n    iconCls\n  } = token;\n  return {\n    [componentCls]: {\n      outline: 'none',\n      position: 'relative',\n      display: 'inline-block',\n      fontWeight: 400,\n      whiteSpace: 'nowrap',\n      textAlign: 'center',\n      backgroundImage: 'none',\n      backgroundColor: 'transparent',\n      border: `${token.lineWidth}px ${token.lineType} transparent`,\n      cursor: 'pointer',\n      transition: `all ${token.motionDurationMid} ${token.motionEaseInOut}`,\n      userSelect: 'none',\n      touchAction: 'manipulation',\n      lineHeight: token.lineHeight,\n      color: token.colorText,\n      '> span': {\n        display: 'inline-block'\n      },\n      // Leave a space between icon and text.\n      [`> ${iconCls} + span, > span + ${iconCls}`]: {\n        marginInlineStart: token.marginXS\n      },\n      '&:not(:disabled)': Object.assign({}, genFocusStyle(token)),\n      // make `btn-icon-only` not too narrow\n      '&-icon-only&-compact-item': {\n        flex: 'none'\n      },\n      // Special styles for Primary Button\n      [`&-compact-item${componentCls}-primary`]: {\n        '&:not([disabled]) + &:not([disabled])': {\n          position: 'relative',\n          '&:before': {\n            position: 'absolute',\n            top: -token.lineWidth,\n            insetInlineStart: -token.lineWidth,\n            display: 'inline-block',\n            width: token.lineWidth,\n            height: `calc(100% + ${token.lineWidth * 2}px)`,\n            backgroundColor: token.colorPrimaryHover,\n            content: '\"\"'\n          }\n        }\n      },\n      // Special styles for Primary Button\n      '&-compact-vertical-item': {\n        [`&${componentCls}-primary`]: {\n          '&:not([disabled]) + &:not([disabled])': {\n            position: 'relative',\n            '&:before': {\n              position: 'absolute',\n              top: -token.lineWidth,\n              insetInlineStart: -token.lineWidth,\n              display: 'inline-block',\n              width: `calc(100% + ${token.lineWidth * 2}px)`,\n              height: token.lineWidth,\n              backgroundColor: token.colorPrimaryHover,\n              content: '\"\"'\n            }\n          }\n        }\n      }\n    }\n  };\n};\nconst genHoverActiveButtonStyle = (hoverStyle, activeStyle) => ({\n  '&:not(:disabled)': {\n    '&:hover': hoverStyle,\n    '&:active': activeStyle\n  }\n});\n// ============================== Shape ===============================\nconst genCircleButtonStyle = token => ({\n  minWidth: token.controlHeight,\n  paddingInlineStart: 0,\n  paddingInlineEnd: 0,\n  borderRadius: '50%'\n});\nconst genRoundButtonStyle = token => ({\n  borderRadius: token.controlHeight,\n  paddingInlineStart: token.controlHeight / 2,\n  paddingInlineEnd: token.controlHeight / 2,\n  width: 'auto'\n});\n// =============================== Type ===============================\nconst genDisabledStyle = token => ({\n  cursor: 'not-allowed',\n  borderColor: token.colorBorder,\n  color: token.colorTextDisabled,\n  backgroundColor: token.colorBgContainerDisabled,\n  boxShadow: 'none'\n});\nconst genGhostButtonStyle = (btnCls, textColor, borderColor, textColorDisabled, borderColorDisabled, hoverStyle, activeStyle) => ({\n  [`&${btnCls}-background-ghost`]: Object.assign(Object.assign({\n    color: textColor || undefined,\n    backgroundColor: 'transparent',\n    borderColor: borderColor || undefined,\n    boxShadow: 'none'\n  }, genHoverActiveButtonStyle(Object.assign({\n    backgroundColor: 'transparent'\n  }, hoverStyle), Object.assign({\n    backgroundColor: 'transparent'\n  }, activeStyle))), {\n    '&:disabled': {\n      cursor: 'not-allowed',\n      color: textColorDisabled || undefined,\n      borderColor: borderColorDisabled || undefined\n    }\n  })\n});\nconst genSolidDisabledButtonStyle = token => ({\n  '&:disabled': Object.assign({}, genDisabledStyle(token))\n});\nconst genSolidButtonStyle = token => Object.assign({}, genSolidDisabledButtonStyle(token));\nconst genPureDisabledButtonStyle = token => ({\n  '&:disabled': {\n    cursor: 'not-allowed',\n    color: token.colorTextDisabled\n  }\n});\n// Type: Default\nconst genDefaultButtonStyle = token => Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, genSolidButtonStyle(token)), {\n  backgroundColor: token.colorBgContainer,\n  borderColor: token.colorBorder,\n  boxShadow: `0 ${token.controlOutlineWidth}px 0 ${token.controlTmpOutline}`\n}), genHoverActiveButtonStyle({\n  color: token.colorPrimaryHover,\n  borderColor: token.colorPrimaryHover\n}, {\n  color: token.colorPrimaryActive,\n  borderColor: token.colorPrimaryActive\n})), genGhostButtonStyle(token.componentCls, token.colorBgContainer, token.colorBgContainer, token.colorTextDisabled, token.colorBorder)), {\n  [`&${token.componentCls}-dangerous`]: Object.assign(Object.assign(Object.assign({\n    color: token.colorError,\n    borderColor: token.colorError\n  }, genHoverActiveButtonStyle({\n    color: token.colorErrorHover,\n    borderColor: token.colorErrorBorderHover\n  }, {\n    color: token.colorErrorActive,\n    borderColor: token.colorErrorActive\n  })), genGhostButtonStyle(token.componentCls, token.colorError, token.colorError, token.colorTextDisabled, token.colorBorder)), genSolidDisabledButtonStyle(token))\n});\n// Type: Primary\nconst genPrimaryButtonStyle = token => Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, genSolidButtonStyle(token)), {\n  color: token.colorTextLightSolid,\n  backgroundColor: token.colorPrimary,\n  boxShadow: `0 ${token.controlOutlineWidth}px 0 ${token.controlOutline}`\n}), genHoverActiveButtonStyle({\n  color: token.colorTextLightSolid,\n  backgroundColor: token.colorPrimaryHover\n}, {\n  color: token.colorTextLightSolid,\n  backgroundColor: token.colorPrimaryActive\n})), genGhostButtonStyle(token.componentCls, token.colorPrimary, token.colorPrimary, token.colorTextDisabled, token.colorBorder, {\n  color: token.colorPrimaryHover,\n  borderColor: token.colorPrimaryHover\n}, {\n  color: token.colorPrimaryActive,\n  borderColor: token.colorPrimaryActive\n})), {\n  [`&${token.componentCls}-dangerous`]: Object.assign(Object.assign(Object.assign({\n    backgroundColor: token.colorError,\n    boxShadow: `0 ${token.controlOutlineWidth}px 0 ${token.colorErrorOutline}`\n  }, genHoverActiveButtonStyle({\n    backgroundColor: token.colorErrorHover\n  }, {\n    backgroundColor: token.colorErrorActive\n  })), genGhostButtonStyle(token.componentCls, token.colorError, token.colorError, token.colorTextDisabled, token.colorBorder, {\n    color: token.colorErrorHover,\n    borderColor: token.colorErrorHover\n  }, {\n    color: token.colorErrorActive,\n    borderColor: token.colorErrorActive\n  })), genSolidDisabledButtonStyle(token))\n});\n// Type: Dashed\nconst genDashedButtonStyle = token => Object.assign(Object.assign({}, genDefaultButtonStyle(token)), {\n  borderStyle: 'dashed'\n});\n// Type: Link\nconst genLinkButtonStyle = token => Object.assign(Object.assign(Object.assign({\n  color: token.colorLink\n}, genHoverActiveButtonStyle({\n  color: token.colorLinkHover\n}, {\n  color: token.colorLinkActive\n})), genPureDisabledButtonStyle(token)), {\n  [`&${token.componentCls}-dangerous`]: Object.assign(Object.assign({\n    color: token.colorError\n  }, genHoverActiveButtonStyle({\n    color: token.colorErrorHover\n  }, {\n    color: token.colorErrorActive\n  })), genPureDisabledButtonStyle(token))\n});\n// Type: Text\nconst genTextButtonStyle = token => Object.assign(Object.assign(Object.assign({}, genHoverActiveButtonStyle({\n  color: token.colorText,\n  backgroundColor: token.colorBgTextHover\n}, {\n  color: token.colorText,\n  backgroundColor: token.colorBgTextActive\n})), genPureDisabledButtonStyle(token)), {\n  [`&${token.componentCls}-dangerous`]: Object.assign(Object.assign({\n    color: token.colorError\n  }, genPureDisabledButtonStyle(token)), genHoverActiveButtonStyle({\n    color: token.colorErrorHover,\n    backgroundColor: token.colorErrorBg\n  }, {\n    color: token.colorErrorHover,\n    backgroundColor: token.colorErrorBg\n  }))\n});\n// Href and Disabled\nconst genDisabledButtonStyle = token => Object.assign(Object.assign({}, genDisabledStyle(token)), {\n  [`&${token.componentCls}:hover`]: Object.assign({}, genDisabledStyle(token))\n});\nconst genTypeButtonStyle = token => {\n  const {\n    componentCls\n  } = token;\n  return {\n    [`${componentCls}-default`]: genDefaultButtonStyle(token),\n    [`${componentCls}-primary`]: genPrimaryButtonStyle(token),\n    [`${componentCls}-dashed`]: genDashedButtonStyle(token),\n    [`${componentCls}-link`]: genLinkButtonStyle(token),\n    [`${componentCls}-text`]: genTextButtonStyle(token),\n    [`${componentCls}-disabled`]: genDisabledButtonStyle(token)\n  };\n};\n// =============================== Size ===============================\nconst genSizeButtonStyle = function (token) {\n  let sizePrefixCls = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';\n  const {\n    componentCls,\n    iconCls\n  } = token;\n  const paddingVertical = Math.max(0, (token.controlHeight - token.fontSize * token.lineHeight) / 2 - token.lineWidth);\n  const paddingHorizontal = token.buttonPaddingHorizontal - token.lineWidth;\n  const iconOnlyCls = `${componentCls}-icon-only`;\n  return [\n  // Size\n  {\n    [`${componentCls}${sizePrefixCls}`]: {\n      fontSize: token.fontSize,\n      height: token.controlHeight,\n      padding: `${paddingVertical}px ${paddingHorizontal}px`,\n      borderRadius: token.borderRadius,\n      [`&${iconOnlyCls}`]: {\n        width: token.controlHeight,\n        paddingInlineStart: 0,\n        paddingInlineEnd: 0,\n        '> span': {\n          transform: 'scale(1.143)' // 14px -> 16px\n        }\n      },\n\n      // Loading\n      [`&${componentCls}-loading`]: {\n        opacity: token.opacityLoading,\n        cursor: 'default'\n      },\n      [`${componentCls}-loading-icon`]: {\n        transition: `width ${token.motionDurationSlow} ${token.motionEaseInOut}, opacity ${token.motionDurationSlow} ${token.motionEaseInOut}`\n      },\n      [`&:not(${iconOnlyCls}) ${componentCls}-loading-icon > ${iconCls}`]: {\n        marginInlineEnd: token.marginXS\n      }\n    }\n  },\n  // Shape - patch prefixCls again to override solid border radius style\n  {\n    [`${componentCls}${componentCls}-circle${sizePrefixCls}`]: genCircleButtonStyle(token)\n  }, {\n    [`${componentCls}${componentCls}-round${sizePrefixCls}`]: genRoundButtonStyle(token)\n  }];\n};\nconst genSizeBaseButtonStyle = token => genSizeButtonStyle(token);\nconst genSizeSmallButtonStyle = token => {\n  const smallToken = mergeToken(token, {\n    controlHeight: token.controlHeightSM,\n    padding: token.paddingXS,\n    buttonPaddingHorizontal: 8,\n    borderRadius: token.borderRadiusSM\n  });\n  return genSizeButtonStyle(smallToken, `${token.componentCls}-sm`);\n};\nconst genSizeLargeButtonStyle = token => {\n  const largeToken = mergeToken(token, {\n    controlHeight: token.controlHeightLG,\n    fontSize: token.fontSizeLG,\n    borderRadius: token.borderRadiusLG\n  });\n  return genSizeButtonStyle(largeToken, `${token.componentCls}-lg`);\n};\nconst genBlockButtonStyle = token => {\n  const {\n    componentCls\n  } = token;\n  return {\n    [componentCls]: {\n      [`&${componentCls}-block`]: {\n        width: '100%'\n      }\n    }\n  };\n};\n// ============================== Export ==============================\nexport default genComponentStyleHook('Button', token => {\n  const {\n    controlTmpOutline,\n    paddingContentHorizontal\n  } = token;\n  const buttonToken = mergeToken(token, {\n    colorOutlineDefault: controlTmpOutline,\n    buttonPaddingHorizontal: paddingContentHorizontal\n  });\n  return [\n  // Shared\n  genSharedButtonStyle(buttonToken),\n  // Size\n  genSizeSmallButtonStyle(buttonToken), genSizeBaseButtonStyle(buttonToken), genSizeLargeButtonStyle(buttonToken),\n  // Block\n  genBlockButtonStyle(buttonToken),\n  // Group (type, ghost, danger, disabled, loading)\n  genTypeButtonStyle(buttonToken),\n  // Button Group\n  genGroupStyle(buttonToken),\n  // Space Compact\n  genCompactItemStyle(token, {\n    focus: false\n  }), genCompactItemVerticalStyle(token)];\n});"],"mappings":";AAAA,SAASA,qBAAqB,EAAEC,UAAU,QAAQ,sBAAsB;AACxE,OAAOC,aAAa,MAAM,SAAS;AACnC,SAASC,aAAa,QAAQ,aAAa;AAC3C,SAASC,mBAAmB,QAAQ,0BAA0B;AAC9D,SAASC,2BAA2B,QAAQ,mCAAmC;AAC/E;AACA,IAAMC,oBAAoB,GAAG,SAAvBA,oBAAoB,CAAGC,KAAK,EAAI;EAAA;EACpC,IACEC,YAAY,GAEVD,KAAK,CAFPC,YAAY;IACZC,OAAO,GACLF,KAAK,CADPE,OAAO;EAET,2BACGD,YAAY;IACXE,OAAO,EAAE,MAAM;IACfC,QAAQ,EAAE,UAAU;IACpBC,OAAO,EAAE,cAAc;IACvBC,UAAU,EAAE,GAAG;IACfC,UAAU,EAAE,QAAQ;IACpBC,SAAS,EAAE,QAAQ;IACnBC,eAAe,EAAE,MAAM;IACvBC,eAAe,EAAE,aAAa;IAC9BC,MAAM,YAAKX,KAAK,CAACY,SAAS,gBAAMZ,KAAK,CAACa,QAAQ,iBAAc;IAC5DC,MAAM,EAAE,SAAS;IACjBC,UAAU,gBAASf,KAAK,CAACgB,iBAAiB,cAAIhB,KAAK,CAACiB,eAAe,CAAE;IACrEC,UAAU,EAAE,MAAM;IAClBC,WAAW,EAAE,cAAc;IAC3BC,UAAU,EAAEpB,KAAK,CAACoB,UAAU;IAC5BC,KAAK,EAAErB,KAAK,CAACsB,SAAS;IACtB,QAAQ,EAAE;MACRjB,OAAO,EAAE;IACX;EAAC,8CAEKH,OAAO,+BAAqBA,OAAO,GAAK;IAC5CqB,iBAAiB,EAAEvB,KAAK,CAACwB;EAC3B,CAAC,kCACD,kBAAkB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